package records

import (
	"github.com/golib/mysql"
)

const RecordNameCensusTaskInfo = "census_task_info"

func init() {
	var r = &CensusTaskInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CensusTaskInfo struct {
	Id         int    `json:"id" form:"id" column:"id" primary:"true" modify:"false"`
	Uuid       string `json:"uuid" form:"uuid" column:"uuid" modify:"true"`
	AppName    string `json:"appName" form:"appName" column:"app_name" modify:"true"`
	Action     int    `json:"action" form:"action" column:"action" modify:"true"`
	Status     int    `modify:"true" json:"status" form:"status" column:"status"`
	Note       string `json:"note" form:"note" column:"note" modify:"true"`
	Data       string `modify:"true" json:"data" form:"data" column:"data"`
	ReadyTime  string `column:"ready_time" modify:"true" json:"readyTime" form:"readyTime"`
	StartTime  string `json:"startTime" form:"startTime" column:"start_time" modify:"true"`
	EndTime    string `json:"endTime" form:"endTime" column:"end_time" modify:"true"`
	Explain    string `json:"explain" form:"explain" column:"explain" modify:"true"`
	CreateTime string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *CensusTaskInfo) Name() string {
	return RecordNameCensusTaskInfo
}
